package control;

import gui.LoginGui;
import gui.RegisterGui;

public class Controller {
	
	private static Context _context = new Context();
	static RegisterGui registerGui;
	static LoginGui loginGui;
	
	public static void main(String[] args) {
		new Controller();
	}
	public Controller(){
		newActivity(Constants.ACTIVITY_NEWLOGINGUI);
	}

	
	public void newActivity(String activity){
		switch(activity){
		case Constants.ACTIVITY_NEWREGISTERGUI:
			new RegisterGui(Constants.TITLE_REGISTRATION, _context, this);
		case Constants.ACTIVITY_NEWLOGINGUI:
			new LoginGui(Constants.TITLE_LOGIN,_context,this);
		}
	}
}